﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace Xyz.Framework.Server.DataAcessLayer
{
    internal class DataObjectContext : ObjectContext
    {
        public DataObjectContext(string connectionstring, string containername)
            : base(connectionstring, containername)
        {
            this.ContextOptions.LazyLoadingEnabled = false;
            // entity framework global ayarlar burada yapılır
        }

        public int SaveChanges()
        {
            return base.SaveChanges();
        }

        public void DeleteObject(object entity)
        {
            base.DeleteObject(entity);
        }

        

    }
}
